//
//  SCUserCommentViewModel.m
//  Mutal
//
//  Created by TonyStart on 16/10/24.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCUserCommentViewModel.h"
#import "SCNetworkTool.h"
@implementation SCUserCommentViewModel

-(void)requestCommentWithUserID:(NSString*)userId finish:(void (^)(NSInteger))finish{
    
    NSDictionary *param = @{@"g":@"Appapi",@"m":@"comment",@"a":@"index"};
    NSString *url = urlMakeWithDict(param);
    
    [[SCNetworkTool shared] requestDataWithMethod:GET url:url finish:^(id data, NSError *err,NSInteger code) {
        self.comments = data;
        finish(self.comments.count);
    }];
}
@end
